package com.bdqn.service.impl;

import com.bdqn.mapper.SysRoleMapper;
import com.bdqn.pojo.SysRole;
import com.bdqn.service.SysRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * SysRoleService服务层实现类
 */
@Service("sysRoleService")
public class SysRoleServiceImpl implements SysRoleService {

    @Resource // 使用注解的方式将DAO层的Bean注入
    private SysRoleMapper sysRoleMapper;

    /**
     * 获得用户列表
     *
     * @param sysRole
     * @return
     */
    @Override
    public List<SysRole> getList(SysRole sysRole) {
        return sysRoleMapper.selectSysRoleList(sysRole);
    }
}
